<?php
namespace app\serverintegralmall\validate;
use \app\manage\validate\BaseValidate;

class Order extends BaseValidate
{
    //添加和编辑的时候的验证规则
	protected $rule =   [
        'id'  => ['integer','gt'=>0],
        'order_id'  => ['integer','gt'=>0],
        'user_id'  => ['integer','gt'=>0],
        'goods_id'  => ['integer','gt'=>0],
        'number'  => ['integer','gt'=>0],
        'integral'  => ['integer','gt'=>0],
        'order_code'  => ['min'=>2],
        'pick_up_code'  => ['min'=>2],
        'page'=>['integer','gt'=>0],
        'listRows'=>['integer','gt'=>0,'elt'=>50],
        'name'=>['min'=>2],
        'logistics_company_code' => ['alphaNum'],
        'waybill_number' => ['alphaNum'],
        'logistics_company_name' => ['min'=>2],
    ];

    protected $message  =   [
    ];

    
    protected $scene = [
    ];

}